package com.spring.activemq.comsumer;

import javax.annotation.Resource;
import javax.jms.Message;
import javax.jms.MessageListener;

import org.springframework.stereotype.Component;

import com.spring.security.web.service.MtsService;
@Component
public class MtsJmsReceiver implements MessageListener{
	
	@Resource private MtsService mtsService;

    @Override
    public void onMessage(Message message) {
        mtsService.checkMts(message);
    }
}
